package com.xucan.mapperstruct;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private int id;
    private String name;
    private Date date;
}

@Data
@NoArgsConstructor
@AllArgsConstructor
 class UserDTO {
    private int id;
    private String username;
    private LocalDate localDate;
}
